package com.ybkj.daijia.server.model;

import java.math.BigDecimal;

/**
 * 提成表
 *
 * @author Shine
 */
public class GasRebate extends Base {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    private Integer level;//提成等级 0不提成 1一级 2二级 3三级

    /**
     * 第一级
     */
    private BigDecimal commission1;// 提成比例

    private BigDecimal money1;// 提成金额

    private GasRebateType gasRebateType1; // 提成方式

    /**
     * 第二级
     */
    private BigDecimal commission2;// 提成比例

    private BigDecimal money2;// 提成金额

    private GasRebateType gasRebateType2; // 提成方式

    /**
     * 第三级
     */
    private BigDecimal commission3;// 提成比例

    private BigDecimal money3;// 提成金额

    private GasRebateType gasRebateType3; // 提成方式

    private Long companyId;


    public GasRebateType getGasRebateType1() {
        if (null == gasRebateType1) {
            return GasRebateType.guding;
        }
        return gasRebateType1;
    }


    public void setGasRebateType1(GasRebateType gasRebateType1) {
        this.gasRebateType1 = gasRebateType1;
    }


    public GasRebateType getGasRebateType2() {
        if (null == gasRebateType2) {
            return GasRebateType.guding;
        }
        return gasRebateType2;
    }


    public void setGasRebateType2(GasRebateType gasRebateType2) {
        this.gasRebateType2 = gasRebateType2;
    }


    public GasRebateType getGasRebateType3() {
        if (null == gasRebateType3) {
            return GasRebateType.guding;
        }
        return gasRebateType3;
    }


    public void setGasRebateType3(GasRebateType gasRebateType3) {
        this.gasRebateType3 = gasRebateType3;
    }


    public BigDecimal getCommission1() {
        if (null == commission1) {
            return BigDecimal.ZERO;
        }
        return commission1;
    }


    public void setCommission1(BigDecimal commission1) {
        this.commission1 = commission1;
    }


    public BigDecimal getMoney1() {
        if (null == money1) {
            return BigDecimal.ZERO;
        }
        return money1;
    }


    public void setMoney1(BigDecimal money1) {
        this.money1 = money1;
    }


    public BigDecimal getCommission2() {
        if (null == commission2) {
            return BigDecimal.ZERO;
        }
        return commission2;
    }


    public void setCommission2(BigDecimal commission2) {
        this.commission2 = commission2;
    }


    public BigDecimal getMoney2() {
        if (null == money2) {
            return BigDecimal.ZERO;
        }
        return money2;
    }


    public void setMoney2(BigDecimal money2) {
        this.money2 = money2;
    }


    public BigDecimal getCommission3() {
        if (null == commission3) {
            return BigDecimal.ZERO;
        }
        return commission3;
    }


    public void setCommission3(BigDecimal commission3) {
        this.commission3 = commission3;
    }


    public BigDecimal getMoney3() {
        if (null == money3) {
            return BigDecimal.ZERO;
        }
        return money3;
    }


    public void setMoney3(BigDecimal money3) {
        this.money3 = money3;
    }


    public Integer getLevel() {
        if (null == level) {
            return 0;
        }
        return level;
    }


    public void setLevel(Integer level) {
        this.level = level;
    }

    public Long getCompanyId() {
        return companyId;
    }


    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }


    public enum GasRebateType {
        /**
         * 比例提成
         */
        percent,
        /**
         * 固定提成
         */
        guding
    }


}
